package itsm.isperp.framework.data.datasource;
import javax.sql.DataSource;

/**
 * 数据源注册器.
 * <p>
 * 此类用于向系统中的数据源仓库注册一个数据源.
 * </p>
 * 
 * @author lizx
 * @since 1.0
 */
public class DataSourceRegister {
	public DataSourceRegister() {

	}

	private String name = null;
	private DataSource dataSource = null;
	private boolean asDefault = false;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public DataSource getDataSource() {
		return dataSource;
	}

	public void setDataSource(DataSource dataSource) {
		this.dataSource = dataSource;
	}

	public boolean isAsDefault() {
		return asDefault;
	}

	public void setAsDefault(boolean asDefault) {
		this.asDefault = asDefault;
	}

}
